<form action="/user/updateInfo" method="post">


    @if ($errors->any())
        <div role="alert" class="alert alert-error mb-10">
            <svg xmlns="http://www.w3.org/2000/svg" class="stroke-current shrink-0 h-6 w-6" fill="none" viewBox="0 0 24 24"><path stroke-linecap="round" stroke-linejoin="round" stroke-width="2" d="M10 14l2-2m0 0l2-2m-2 2l-2-2m2 2l2 2m7-2a9 9 0 11-18 0 9 9 0 0118 0z" /></svg>
            <ul>
                @foreach ($errors->all() as $error)
                    <li>{{ $error }}</li>
                @endforeach
            </ul>
        </div>
    @endif

    @csrf

    <label class="input input-bordered  flex items-center gap-2 mb-6">
        用户名
        <input type="text" class="grow" placeholder="" required name="name"  value="{{ auth()->user()->name }}"/>
    </label>

    <label class="input input-bordered  flex items-center gap-2 mb-6">
        昵称
        <input type="text" class="grow" placeholder="" required name="nickname"  value="{{ auth()->user()->nickname }}"/>
    </label>

    <label class="input input-bordered flex items-center gap-2 mb-6">
        密码
        <input type="password" class="grow" placeholder=""  name="password"   value=""/>
    </label>


    <label class="input input-bordered flex items-center gap-2 mb-6">
        确认密码
        <input type="password" class="grow" placeholder=""  name="password_confirmation"   value=""/>
    </label>



    <button class="btn btn-primary w-full mt-6">确认修改</button>


</form>
